package com.CST.entity.ys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 业务执行管理表
 * @author cw
 */
@Data
@TableName("YS_ACCOUNT_DETAIL")
@ApiModel(value = "YsAccountDetail对象", description = "业务预算执行明细实体类")
public class YsAccountDetail implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用友科目编码")
    @TableField("ACCOUNT_CODE")
    private String accountCode;

    @ApiModelProperty("用友科目名称")
    @TableField("ACCOUNT_NAME")
    private String accountName;

    @ApiModelProperty("日期")
    @TableField("DTIME")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date dTime;

    @TableField("DEPT_CODE")
    @ApiModelProperty("部门编码")
    private String deptCode;

    @ApiModelProperty(value = "部门名称")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty("摘要")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty("金额")
    @TableField("AMOUNT")
    private Double amount;

    @ApiModelProperty("院区 1三香 2 浒关")
    @TableField("YARD")
    private Integer yard;

    @ApiModelProperty("编号")
    @TableField("NUM")
    private Integer num;

    @ApiModelProperty("导入：0 新增：1 编辑：2")
    @TableField("INSERT_FLAG")
    private Integer insertFlag;

    @ApiModelProperty("凭证号")
    @TableField("ACCOUNT_NUM")
    private String accountNum;

    @ApiModelProperty("时间")
    @TableField("PERIOD")
    private Integer period;

    @ApiModelProperty("1:业务职能  2:管理职能")
    @TableField("TYPE")
    private Integer type;

    @ApiModelProperty("预算科目ID")
    @TableField("SUBJECT_ID")
    private Integer subjectId;

    @ApiModelProperty("0：未删除  1:已删除")
    @TableField("DELETE_FLAG")
    private Integer deleteFlag;

    @TableId(type= IdType.AUTO)
    private Integer id;

    @TableField("CREATE_BY")
    private String createBy;

    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField("UPDATE_BY")
    private String updateBy;

    @TableField("UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @ApiModelProperty("预算科目名称")
    private String subjectName;
}
